#ifndef CLAYOUTITEM_H_
#define CLAYOUTITEM_H_

#include "../base/cobject.h"

// Foward declarations
class CGuiObject;

/**
 * CLayoutItem - class representing component placed in layout
 * @author Michal Rost
 * @date 30.03.2008
 */
class CLayoutItem : public CObject {
public:
  CLayoutItem(CGuiObject* componentPtr, TIndex posX, TIndex posY,
      TIndex spanX = 1, TIndex spanY = 1);
  CGuiObject* getComponentPtr();
  TIndex getPosX() const;
  TIndex getPosY() const;
  TIndex getSpanX() const;
  TIndex getSpanY() const;
  static std::string getClassName() {
    return "CLayoutItem";
  }
protected:
  CGuiObject* componentPtr;
  TIndex posX, posY;
  TIndex spanX, spanY;
};

#endif
